package org.dyk.seamanshousefrontdesk.service.cart;

import com.alibaba.fastjson.JSONArray;
import org.dyk.seamanshousefrontdesk.model.Cart;

import java.util.List;

public interface CartService {
    //查询当前用户购物车信息
    public JSONArray findAllByUid(int uid);

    //根据 主键 获取购物车信息
    public Cart findByCid(int cid);

    //将商品信息添加到购物车
    public boolean insert(int gid, int uid);

    //删除购物车
    public boolean delete(int gid);

    //修改购物车商品数量
    public boolean updataQuantity(int cid, int goodsNum);
}
